package fr.greta.centreFormation.controller;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class VerifInscription
 */
public class VerifInscription extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public VerifInscription() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		response.setContentType("text/html");
				
		PrintWriter out = response.getWriter();
				
		out.println("<html><body>\n" +
				
		"<H1>Recapitulatif des informations</H1>\n" +
		"<ul>\n" +
		 "<H2>Etat civil</H2 \n" +
		 "</ul>\n" +
		 "<li>Nom :" + request.getParameter("nom") + "\n" +
		 "<li>Prenom :" + request.getParameter("prenom") + "\n" +
		 "<li>Date de naissance :" + request.getParameter("date-de-naissance") + "\n" +
		 "<H2>Adresse</H2 \n" +
		"</ul>\n" +
		 "<li>Email :" + request.getParameter("email") + "\n" +
		 "<li>Tel 1 :" + request.getParameter("tel1") + "\n" +
		 "<li>Tel 2 :" + request.getParameter("tel2") + "\n" +
		 "<li>Rue :" + request.getParameter("rue") + "\n" +
		 "<li>Ville :" + request.getParameter("ville") + "\n" +
		 "<li>Code postal :" + request.getParameter("code-postal") + "\n" +
		 "<H2>Parcours</H2 \n" +
		"</ul>\n" +
		 "<li>Diplôme 1 :" + request.getParameter("diplome1") + "\n" +
		 "<li>Diplôme 2 :" + request.getParameter("diplome2") + "\n" +
		 "<li>Compétence 1 :" + request.getParameter("competence1") + "\n" +
		 "<li>Compétence 2 :" + request.getParameter("competence2") + "\n" +
		 "<li>Expérience 1 :" + request.getParameter("experience1") + "\n" +
		 "<li>Expérience 2 :" + request.getParameter("experience2") + "\n" +
		 "<li>Motivations :" + request.getParameter("vosmotivations") + "\n" +
				 
		"</ul>\n" +
				 "</body></html>");
				

}
	}

